package cn.ilovese.collect.po.user;

import cn.ilovese.collect.vo.user.UserVO;
import lombok.NonNull;

public class User {
    private Integer id;

    private String username;

    private String password;

    private String role;

    private String email;

    private String photoUrl;

    private String skill;

    private String taskPrefer;

    private String freqDevice;

    private String activity;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setActivity(String activity) {
        this.activity = activity;
    }

    public String getActivity() {
        return activity;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role == null ? null : role.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl == null ? null : photoUrl.trim();
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill == null ? null : skill.trim();
    }

    public String getTaskPrefer() {
        return taskPrefer;
    }

    public void setTaskPrefer(String taskPrefer) {
        this.taskPrefer = taskPrefer == null ? null : taskPrefer.trim();
    }

    public String getFreqDevice() {
        return freqDevice;
    }

    public void setFreqDevice(String freqDevice) {
        this.freqDevice = freqDevice == null ? null : freqDevice.trim();
    }
    public User(@NonNull UserVO user){
        id=user.getId();
        username=user.getUsername();
        password=user.getPassword();
        role=user.getRole();
        email=user.getEmail();
        photoUrl=user.getPhotoUrl();
        skill=user.getSkill();
        taskPrefer=user.getTaskPrefer();
        freqDevice=user.getFreqDevice();
        activity=user.getActivity();
    }
    public User(){

    }
}